<extend name="Public/base"/>

<block name="body">
    <div class="row">
        <div class="col-lg-8">
            <div class="main-title">
                <h2>受理详情</h2>
            </div>
            <form action="{:U(newaccept)}" method="post" enctype="multipart/form-data" class="form-horizontal">
                <input type="hidden" name='uid' value="{$uid}"/>
                <div class="form-item">
                    <label class="item-label">地区</label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="province" value="{$data.city}" disabled="disabled">
                    </div>
                </div>
                <div class="form-item">
                    <label class="item-label">姓名</label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="realName" value="{$data.realName}" disabled="disabled">
                    </div>
                </div>
                <div class="form-item">
                    <label class="item-label">联系电话</label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="phone" value="{$data.phone}" disabled="disabled">
                    </div>
                </div>
                <div class="form-item">
                    <label class="item-label">店铺名称</label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="shopName" value="{$data.shopName}" disabled="disabled">
                    </div>
                </div>
                <div class="form-item">
                    <label class="item-label">详细地址</label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="street" value="{$data.street}" disabled="disabled">
                    </div>
                </div>
                <div class="form-item">
                    <label class="item-label">申请时间</label>
                    <div class="controls">
                        <input type="text" class="text input-large" name="chuangjian" value="{$data.chuangjian|time_format}" disabled="disabled">
                    </div>
                </div>
                <div class="form-item">
                    <label class="item-label">业务员</label>
                    <if condition="$exist eq 1 ">
                        <div class="controls">
                            <input type="text" class="text input-large" name="saleman" value="{$saleman.sname}" disabled="disabled">
                        </div>
                        <else />
                        <select name="id"  style="height: 30px;width:120px">
                            <volist name="_list" id="vo">
                                <option value="{$vo.id}">{$vo.name}</option>
                            </volist>
                        </select>
                    </if>
                </div>
                <div class="form-item">
                    <label class="item-label">受理备注</label>
                    <div class="controls">
                        <textarea class="form-control" name="acceptremark" rows="3" style="width: 400px;">{$data.acceptremark}</textarea>
                    </div>
                </div>
                <div class="form-item" style="margin-top: 30px;">
                    <button class="btn submit-btn " type="submit" target-form="form-horizontal">受 理</button>
                    <a onclick="history.go(-1)" class="btn btn-return">返 回</a>
                </div>
            </form>
        </div>
        <div class="col-lg-4">
            <table class="table">
                <tr>
                    <th>时间</th>
                    <th>处理人</th>
                    <th>详情</th>
                </tr>
                <volist name="order.log" id="log">
                    <tr style="font-size: 12px;">
                        <td style="width:35%">
                            <eq name="log.type" value="用户操作"><span style="color:red;"><b>{$log.createAt|time_format}</b></span><else/>{$log.createAt|time_format}</eq>
                        </td>
                        <td style="width:25%">
                            <eq name="log.type" value="用户操作"><span style="color:red;"><b>用户</b></span><else/>{$log.uname}</eq>
                        </td>
                        <td style="width:35%">
                            <eq name="log.type" value="用户操作"><span style="color:red;"><b>{$log.remark}</b></span><else/>{$log.remark}</eq>
                        </td>
                    </tr>
                </volist>
            </table>
        </div>
    </div>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Relation/contractapplyindex')}');
    </script>
</block>